package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.A_GYShDao;
import com.zhongchaowuye.pojo.A_GYSh;
import com.zhongchaowuye.service.A_GYShService;

@Transactional
@Service("a_GYShService")
public class A_GYShServiceImpl implements A_GYShService
{
	@Resource
	A_GYShDao a_GYShDao;
	
	@Override
	public int insertA_GYSh(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.insertA_GYSh(a_GYSh);
	}

	@Override
	public int updateA_GYSh(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.updateA_GYSh(a_GYSh);
	}

	@Override
	public int delA_GYSh(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.delA_GYSh(a_GYSh);
	}
	
	@Override
	public A_GYSh getA_GYSh(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.getA_GYSh(a_GYSh);
	}
	
	@Override
	public List<Map<String, Object>> getA_GYShList(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		//PageHelper.startPage(a_GYSh.getPageIndex(),a_GYSh.getPageSize(),true);
		return a_GYShDao.getA_GYShList(a_GYSh);
	}

	@Override
	public List<Map<String, Object>> getPhoneList(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.getPhoneList(a_GYSh);
	}

	@Override
	public List<Map<String, Object>> getA_GYShList_quchongming(A_GYSh a_GYSh) {
		// TODO Auto-generated method stub
		return a_GYShDao.getA_GYShList_quchongming(a_GYSh);
	}
}
